﻿using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Text;

namespace DataSave.ConfigurationBase
{
    public class ConfigBase : IConfigBase
    {
        public string GetRedisCon()
        {
            //获取连接字符串
            var builder = new ConfigurationBuilder();
            builder.AddJsonFile("AppSetting.json");
            var configuration = builder.Build();
            return configuration.GetConnectionString("RedisCon");
        }
    }
}
